package com.mg.common.utils;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;

public class BeanUtil {
    public static  <T> T beanMapper(Object res, TypeReference<T> typeReference){
        return JSONObject.parseObject(JSONObject.toJSONString(res),typeReference);
    }
}
